package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)" json:"username"`
	Password string `gorm:"type:varchar(50)" json:"password"`
}

type App struct {
	gorm.Model
	Title   string `gorm:"type:varchar(50)" json:"title"`
	Content string `gorm:"type:varchar(50)" json:"content"`
	Xzl     int    `gorm:"type:int" json:"xzl"`
}

type Types struct {
	gorm.Model
	Name string `gorm:"type:varchar(50)" json:"name"`
}

type AppTypes struct {
	gorm.Model
	Aid int `gorm:"type:int" json:"aid"`
	Tid int `gorm:"type:int" json:"tid"`
}
